<h3>Gerenciamento de Filiação</h3>

<p class="adicionar"><?php echo $html->link('Adicionar nova filiação', array('action' => 'add')); ?></p>

<table border="1" cellspacing="0" cellpadding="0">
	<tr>
		<th>Filiação</th>
		<th class="editar">Editar</th>
		<th class="excluir">Excluir</th>

	</tr>

	<?php foreach ($filiations as $f): ?>
	<tr>

		<td><?php echo $f['Filiation']['filiacao']; ?></td>
		<td>
			<?php echo $html->link('Editar', '/filiations/edit/'.$f['Filiation']['id'] );?>
		</td>
		<td>
			<?php echo $html->link('Excluir',  "/filiations/delete/{$f['Filiation']['id']}", null, 'Deseja realmente excluir?' )?>

		</td>
	</tr>
	<?php endforeach; ?> 
</table>
</div>
